import request from '@/utils/request'

// 查询采购订单数据列表
export function listPurchasetb(query) {
  return request({
    url: '/purchasetb/purchasetb/list',
    method: 'get',
    params: query
  })
}

// 查询采购订单数据详细
export function getPurchasetb(purchaseTableId) {
  return request({
    url: '/purchasetb/purchasetb/' + purchaseTableId,
    method: 'get'
  })
}

// 新增采购订单数据
export function addPurchasetb(data) {
  return request({
    url: '/purchasetb/purchasetb',
    method: 'post',
    data: data
  })
}

// 修改采购订单数据
export function updatePurchasetb(data) {
  return request({
    url: '/purchasetb/purchasetb',
    method: 'put',
    data: data
  })
}

// 删除采购订单数据
export function delPurchasetb(purchaseTableId) {
  return request({
    url: '/purchasetb/purchasetb/' + purchaseTableId,
    method: 'delete'
  })
}
